

//图片轮播功能
var interval;
var pos = 0;
window.onload = function() {
    var images = document.getElementsByClassName("m_center")[0].getElementsByTagName("img");
    var tab = document.getElementsByClassName("m_center")[0];
    tab.onmouseover = function() {
        clearInterval(interval);
    }
    tab.onmouseout = function() {
        run(images);
    }
    run(images);
}
var run = function(images) {
    interval = setInterval(function() {
    	if(images.length > 1){
	        images[pos].style.display = 'none';
	        pos = ++pos == images.length ? 0 : pos;
	        images[pos].style.display = 'inline';
       }
    }, 2000);
}